def convert_to_dict_set(dict_list, key):
    dict_set = {}
    for d in dict_list:
        dict_set[d[key]] = d
    return dict_set

dict_list = [
    {"name": "Alice", "age": 25},
    {"name": "Bob", "age": 30},
    {"name": "Charlie", "age": 35}
]

name_dict_set = convert_to_dict_set(dict_list, "name")
print(name_dict_set)


print(name_dict_set["Alice"])     # {'name': 'Alice', 'age': 25}
print(name_dict_set["Bob"])       # {'name': 'Bob', 'age': 30}
print(name_dict_set["Charlie"])   # {'name': 'Charlie', 'age': 35}
print(name_dict_set.get("Dave"))  # None